projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a702f29
)
Avoid warning when loading 'go-ts-mode'
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 29 Mar 2025 10:36:02 +0000
(13:36 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 29 Mar 2025 10:36:02 +0000
(13:36 +0300)
* lisp/progmodes/go-ts-mode.el (treesit-ready-p): Silence the
warning if the gomod language library is not installed.
(Bug#77213)
lisp/progmodes/go-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/go-ts-mode.el
b/lisp/progmodes/go-ts-mode.el
index eb5b93008ebf5aa36225c95cef35267db6250790..c233a7222fceae63aed774bd0eb862b7dbb965c4 100644
(file)
--- a/
lisp/progmodes/go-ts-mode.el
+++ b/
lisp/progmodes/go-ts-mode.el
@@
-476,7
+476,7
@@
what the parent of the node would be if it were a node."
(derived-mode-add-parents 'go-mod-ts-mode '(go-mod-mode))
-(if (treesit-ready-p 'gomod)
+(if (treesit-ready-p 'gomod
t
)
(add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode)))
(provide 'go-ts-mode)